<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\SettingLog
 *
 * @property int $id
 * @property int $admin_id 对应admins表的id
 * @property string $table_name 操作的对应的表名
 * @property int $table_id 操作的表的id
 * @property int $operating_type 当前的操作类型 1 新增 2 修改 3 删除
 * @property string $data 操作的记录
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingLog newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingLog newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingLog query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingLog whereAdminId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingLog whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingLog whereData($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingLog whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingLog whereOperatingType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingLog whereTableId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingLog whereTableName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingLog whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class SettingLog extends Model
{
    //新增
    const LOG_INSERT = 1;
    //更新数据
    const LOG_UPDATE = 2;
    //删除数据
    const LOG_DELETE = 3;
    //
    protected $guarded = ['id'];
}
